home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global abug, TRIAL, whogetsit
- set thisbug to 1 + ((the clickOn - 10) / 6)
- set tsprite to (thisbug * 6) + 4
- repeat with xxx = 0 to 5
- set the foreColor of sprite (xxx + tsprite) to 250
- end repeat
- repeat while the stillDown
- updateStage()
- end repeat
- repeat with xxx = 0 to 5
- set the foreColor of sprite (xxx + tsprite) to 255
- end repeat
- updateStage()
- if abug = thisbug then
- set whogetsit to []
- cleartherest(tsprite)
- play frame "reward" & random(6)
- animateit(thisbug)
- go("bug" & random(4))
- else
- set nowblend to 80
- set ptime to the timer
- repeat while (the timer - ptime) < 60
- set nowblend to 80 - (the timer - ptime)
- repeat with xxx = 0 to 5
- set the blend of sprite (xxx + tsprite) to nowblend
- end repeat
- updateStage()
- end repeat
- repeat with xxx = 0 to 5
- set the visible of sprite (xxx + tsprite) to 0
- end repeat
- set TRIAL to TRIAL + 1
- if TRIAL = 1 then
- play frame "hint1"
- else
- if TRIAL = 2 then
- play frame "hint2"
- else
- play frame "hint3"
- end if
- end if
- updateStage()
- end if
- end
-